#include<iostream>
using namespace std;
int gcd(int a, int b)
{
	if (b == 0)
	{
		return a;
	}
	return gcd(b, a % b);
}
int main()
{
	int a, b, c;
	cin >> a >> b >> c;
	int curr_max, curr_min;
	if (a > b)
	{
		curr_max = a;
		curr_min = b;
	}
	else
	{
		curr_max = b;
		curr_min = a;
	}
	if (c > curr_max)
	{
		curr_max = c;
	}
	else if(c < curr_min)
	{
		curr_min = c;
	}
	int gcd1 = gcd(curr_max, curr_min);
	cout << curr_min / gcd1<< '/' << curr_max / gcd1<< endl;
	return 0;
}